package com.maybach.common.enums.order;

/**
 * Created by zhaoshuai on 16/3/3.
 */
public enum InvoiceTypeEnum {

    vatSpecialInvoice("增值税专用发票(增票)"),
    unifiedInvoice("机动车销售统一发票(用户票)");

    private String desc;

    InvoiceTypeEnum(String desc) {
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public static String getDescByName(String name) {
        for (InvoiceTypeEnum invoiceTypeEnum : InvoiceTypeEnum.values()) {
            if (invoiceTypeEnum.name().equals(name)) {
                return invoiceTypeEnum.desc;
            }
        }
        return null;
    }
}
